<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%
	request.setCharacterEncoding("UTF-8");
	String cp = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<script type="text/javascript" src="<%=cp%>/data/js/jquery-1.8.2.min.js"></script>

<script type="text/javascript">
function sendIt() {
    f = document.tourDate;
	
	if(f.mode.value == "created"){
		f.action = "<%=cp%>/admin/tourDate.action";
	}else if(f.mode.value == "updated"){
		f.action = "<%=cp%>/admin/tourDate.action";
	}
	
    f.submit();
}
</script>


</head>
<body>

<div id="container">
  <form action="" name="tourDate" method="post">
    
	출발일자
        <input type="text" name="startDate" />
	<br />
	도착일자
        <input type="text" name="endDate" />
	<br />
	
	
   	 <input type="hidden" name="mode" value="${mode}"/>
    <input type="button" value="전송"  onclick="sendIt();"/>
  </form>
</div>


</body>
</html>